{template 'member', 'header'}
<script language="javascript" type="text/javascript" src="{JS_PATH}content_addtop.js"></script>
<div class="member_container main">
    {template 'member', 'left'}
    <div class="main_right">
        <div class="tit">
            <h3>{L('published_content')}</h3>
        </div>
        <div class="main_cont">
            <div class="explain">
                <p>说明：已通过的稿件不支持删除.</p>
            </div>
            <table class="tablelist">
                <thead>
                    <tr>
                        <th width="10%">ID</th>
                        <th width="30%">{L('title')}</th>
                        <th width="20%">{L('category')}</th>
                        <th width="20%">{L('adddate')}</th>
                        <th width="10%">{L('status')}</th>
                        <th width="10%">{L('operation')}</th>
                    </tr>
                </thead>
                <tbody>
                    {loop $datas $info} 
                    <tr>
                        <td>{$info['id']}</td>
                        <td><a href="{$info['url']}" target="_blank">{str_cut($info['title'], 60)}</a></td>
                        <td><a href="{if strpos($CATEGORYS[$info['catid']]['url'],'http://')===false}{$siteurl}{/if}{$CATEGORYS[$info['catid']]['url']}" target="_blank">{$CATEGORYS[$info['catid']]['catname']}</a></td>
                        <td>{date('Y-m-d',$info['inputtime'])}</td>
                        <td>{if $info['status']==99}<font color="green">{L('pass')}</font>{elseif $info['status']!='99'}<font color="#1D94C7">待审中</font>{/if}</td>
                        <td>
                            {if check_member_auth($memberinfo['groupid'], $info['catid'], 'edit')}
                            <a href="index.php?m=member&c=content&a=edit&catid={$info['catid']}&id={$info['id']}"><i class="fa fa-edit"></i></a>
                            {/if}
                            {if check_member_auth($memberinfo['groupid'], $info['catid'], 'delete')}
                            <a href="index.php?m=member&c=content&a=delete&catid={$info['catid']}&id={$info['id']}"><i class="fa fa-trash"></i></a>
                            {/if}
                        </td>
                    </tr>
                    {/loop}
                </tbody>
            </table>
            <div id="page">{$pages}</div>
        </div>
    </div>
</div>
<script language="JavaScript">
<!--
	function c_c(catid) {
		location.href='index.php?m=member&c=content&a=published&siteid={$siteid}&catid='+catid;
	}
//-->
</script>
{template 'member', 'footer'}